package br.com.skytef.entity;

import java.sql.Time;

public class OrderItemEntity {

	// private OrderEntity order;
	private int idItem;
	private int index;
	private int orderId;
	private int idTrans;
	private ProductMerchandiseEntity product;
	private int userId;
	private int posId;
	private Time hour;
	private double unitValue;
	private double amount;
	private String obs;
	private String action;
	private boolean canceled;

	public OrderItemEntity() {
		super();
		this.idItem = 0;
		this.index = 0;
		this.orderId = 0;
		this.product = new ProductMerchandiseEntity();
		this.userId = 0;
		this.posId = 0;
		// this.hour = hour;
		this.unitValue = 0;
		this.amount = 0;
		this.obs = "";
		this.canceled = false;
	}

	/*
	 * Setters and Getters
	 */

	/**
	 * @return the orderId
	 */
	public int getOrderId() {
		return orderId;
	}

	public int getIdItem() {
		return idItem;
	}

	public void setIdItem(int idItem) {
		this.idItem = idItem;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	/**
	 * @param orderId
	 *            the orderId to set
	 */
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	
	

	public int getIdTrans() {
		return idTrans;
	}

	public void setIdTrans(int idTrans) {
		this.idTrans = idTrans;
	}

	/**
	 * @return the productId
	 */
	public ProductMerchandiseEntity getProduct() {
		return product;
	}

	/**
	 * @param productId
	 *            the productId to set
	 */
	public void setProduct(ProductMerchandiseEntity product) {
		this.product = product;
	}

	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * @return the posId
	 */
	public int getPosId() {
		return posId;
	}

	/**
	 * @param posId
	 *            the posId to set
	 */
	public void setPosId(int posId) {
		this.posId = posId;
	}

	/**
	 * @return the hour
	 */
	public Time getHour() {
		return hour;
	}

	/**
	 * @param hour
	 *            the hour to set
	 */
	public void setHour(Time hour) {
		this.hour = hour;
	}

	/**
	 * @return the unitValue
	 */
	public double getUnitValue() {
		return unitValue;
	}

	/**
	 * @param unitValue
	 *            the unitValue to set
	 */
	public void setUnitValue(double unitValue) {
		this.unitValue = unitValue;
	}

	/**
	 * @return the quantity
	 */
	public double getAmount() {
		return amount;
	}

	/**
	 * @param amount
	 *            the quantity to set
	 */
	public void setAmount(double amount) {
		this.amount = amount;
	}

	/**
	 * @return the obs
	 */
	public String getObs() {
		return this.obs;
	}

	/**
	 * @param obs
	 *            the obs to set
	 */
	public void setObs(String obs) {
		this.obs = obs;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public boolean isCanceled() {
		return canceled;
	}

	public void setCanceled(boolean canceled) {
		this.canceled = canceled;
	}

}